import request from '@/utils/request'

// 查询巡检任务列表
export const getTaskList = (params) => {
  return request({
    method: 'get',
    url: '/inspection/task/query',
    params,
  })
}

// 获取巡检任务详情
export const getTaskDetail = (params) => {
  return request({
    method: 'get',
    url: '/inspection/task/get',
    params,
  })
}

// 获取巡检任务检查项
export const getTaskItem = (params) => {
  return request({
    method: 'get',
    url: '/inspection/task/get_task_item',
    params,
  })
}

// 巡检计划统计
export const getPlanStatistics = (params) => {
  return request({
    method: 'get',
    url: '/inspection/task/get_plan_statis',
    params,
  })
}
